package Stack;

import java.util.Stack;

public class ArrayStackTest {

    public static void main(String[] args) {

        ArrayStack<Integer> arrayStack = new ArrayStack<Integer>();
        for (int i = 0; i < 5; i++) {
            arrayStack.push(i);
            System.out.println(arrayStack);
        }



        long s  =  arrayStack.peek();
        System.out.println(s);
        System.out.println(arrayStack);
    }
}
